﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Extentions;

namespace TrainingReminderSystem.Model
{
    /// <summary>
    /// 客户信息
    /// </summary>
    [ExLanguageKey("SysCustomer")]
    public partial class SysCustomerExList
    {
        /// <summary>
        /// 
        /// </summary>
        [ExLanguageKey("SysCustomerID")]
        [Key]
        public int SysCustomerID { get; set; }

        /// <summary>
        /// 店铺ID
        /// </summary>
        [ExLanguageKey("SysStoreID")]
        public int SysStoreID { get; set; }

        /// <summary>
        /// 客户类型;普通客户=0,问题客户=1, 刷单客户=2
        ///    
        /// </summary>
        [ExLanguageKey("EnumSysCustomerType")]
        public EnumSysCustomerType EnumSysCustomerType { get; set; }

        /// <summary>
        /// 头像Url
        /// </summary>
        [ExLanguageKey("HeaderUrl")]
        public string HeaderUrl { get; set; }

        /// <summary>
        /// 客户昵称
        /// </summary>
        [ExLanguageKey("SysCustomerName")]
        public string SysCustomerName { get; set; }

        /// <summary>
        /// 拼音
        /// </summary>
        [ExLanguageKey("PY")]
        public string PY { get; set; }

        /// <summary>
        /// 客户电话
        /// </summary>
        [ExLanguageKey("Phone")]
        public string Phone { get; set; }

        /// <summary>
        /// 生日
        /// </summary>
        [ExLanguageKey("BirthDay")]
        public DateTime? BirthDay { get; set; }

        /// <summary>
        /// 状态;禁用=0,启用=1;登录需要判断的
        /// </summary>
        [ExLanguageKey("EnumStatus")]
        public EnumStatus EnumStatus { get; set; }

        /// <summary>
        /// 是否演示帐号
        /// </summary>
        [ExLanguageKey("IsDemo")]
        public bool IsDemo { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [ExLanguageKey("IsDel")]
        public bool IsDel { get; set; }

        /// <summary>
        /// 创建员工
        /// </summary>
        [ExLanguageKey("CreateSysEmployeeID")]
        public int? CreateSysEmployeeID { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [ExLanguageKey("CreateDate")]
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [ExLanguageKey("Remark")]
        public string Remark { get; set; }

        /// <summary>
        /// 管理员工
        /// </summary>
        [ExLanguageKey("SysEmployeeID")]
        public int? SysEmployeeID { get; set; }

        /// <summary>
        /// 客户来源;员工录入=0,手机端绑定=1
        /// </summary>
        [ExLanguageKey("EnumSysCustomerSource")]
        public EnumSysCustomerSource EnumSysCustomerSource { get; set; }

        /// <summary>
        /// 客户意向;暂无=0,意向客户=5,签单客户=10,边缘客户=-10
        /// </summary>
        [ExLanguageKey("EnumSysCustomerIntention")]
        public EnumSysCustomerIntention EnumSysCustomerIntention { get; set; }

        /// <summary>
        /// 特种作业操作证Json
        /// </summary>
        [ExLanguageKey("CertSearch03Json")]
        public string CertSearch03Json { get; set; }

        /// <summary>
        /// 安全生产知识和管理能力考核合格信息Json
        /// </summary>
        [ExLanguageKey("CertSearch02Json")]
        public string CertSearch02Json { get; set; }

        /// <summary>
        /// Json更新时间
        /// </summary>
        [ExLanguageKey("CertSearchUpdateTime")]
        public DateTime? CertSearchUpdateTime { get; set; }

        /// <summary>
        /// 所属推荐人ID
        /// </summary>
        [ExLanguageKey("ReferrerID")]
        public int? ReferrerID { get; set; }

        /// <summary>
        /// 性别;未知=0,男=1,女=2
        /// </summary>
        [ExLanguageKey("EnumGender")]
        public EnumGender EnumGender { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [ExLanguageKey("Address")]
        public string Address { get; set; }

        /// <summary>
        /// 公司
        /// </summary>
        [ExLanguageKey("Company")]
        public string Company { get; set; }

        /// <summary>
        /// 学历;未知=0,高中=1,中专=2,大专=3,大学=4,研究生=5,博士=6
        /// </summary>
        [ExLanguageKey("Qualification")]
        public Qualification Qualification { get; set; }

        /// <summary>
        /// 店铺;店铺的数据,有Filter的
        /// </summary>
        [ExNoModify]
        [ExLanguageKey("SysStore")]
        public SysStoreExPart SysStore { get; set; }

        /// <summary>
        /// 员工
        /// </summary>
        [ExNoModify]
        [ExLanguageKey("SysEmployee")]
        public SysEmployeeExPart SysEmployee { get; set; }

        /// <summary>
        /// 推荐人
        /// </summary>
        [ExNoModify]
        [ExLanguageKey("Referrer")]
        public ReferrerExPart Referrer { get; set; }
    }
}
